package com.huaxin.device.mapping;

import com.huaxin.device.dto.request.DeviceReadingEnvironmentCreateReqDTO;
import com.huaxin.device.dto.request.DeviceReadingEnvironmentUpdateReqDTO;
import com.huaxin.device.models.DeviceReadingEnvironment;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface DeviceReadingEnvironmentMapping {

    DeviceReadingEnvironment toEntity(DeviceReadingEnvironmentCreateReqDTO in);

    void updateEntity(DeviceReadingEnvironmentUpdateReqDTO in, @MappingTarget DeviceReadingEnvironment entity);
}